package com.xtc.netty.tomcat.http;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.HttpRequest;

/**
 * @author Administrator
 */
public class MyRequest {
    private ChannelHandlerContext channelHandlerContext;

    private HttpRequest req;

    public MyRequest(ChannelHandlerContext channelHandlerContext, HttpRequest req) {
        this.channelHandlerContext = channelHandlerContext;
        this.req = req;
    }

    public String getUrl() {
        return req.uri();
    }

    public String getMethod() {
        return req.method().name();
    }
}
